package cn.jdx.controller;

import cn.jdx.entity.Store;
import cn.jdx.service.impl.StoreImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class QuerySQLController {
    @Resource(name = "storeImpl")
    private StoreImpl storeImpl;
    @RequestMapping("/select")
    public List<Store> getAll(){
        return storeImpl.selectByExample(null);
    }
}
